package com.coding.kan_yi_dao.service.impl;

import com.coding.kan_yi_dao.common.Result;
import com.coding.kan_yi_dao.entity.Pay;
import com.coding.kan_yi_dao.mapper.PayMapper;
import com.coding.kan_yi_dao.service.IPayService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 砍一刀，不买就砍你一刀
 * @since 2023-09-20
 */
@Service
public class PayServiceImpl extends ServiceImpl<PayMapper, Pay> implements IPayService {

    @Override
    public Result go_select() {
        return Result.ok(list());
    }

    //添加
    @Override
    public Result go_insert(Pay pay) {
        return Result.ok(baseMapper.insert(pay));
    }
}
